package com.allenblog.service;

import com.allenblog.domain.ResponseResult;
import com.allenblog.domain.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * 评论表(Comment)表服务接口
 *
 * @author makejava
 * @since 2023-12-27 23:48:24
 */
public interface CommentService extends IService<Comment> {

    /**
     * 显示评论
     * @param articleId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseResult commentList(String commentType, Long articleId, Integer pageNum, Integer pageSize);

    /**
     * 发表评论
     * @param comment
     * @return
     */
    ResponseResult addComment(Comment comment);
}
